import menus from './menus'

export default [
  {
    path: '/',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '首页',
    },
    children: menus,
  },
  {
    path: '/login',
    component: () => import('@/views/auth/login.vue'),
    meta: {
      title: '登录',
      guest: true, // 未登录允许访问
    },
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/views/error/404.vue'),
    meta: {
      title: '页面未找到',
      guest: true,
    },
  },

  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/plans/addPlans',
        component: () => import('@/views/recruit/plans/addPlans.vue'),
        meta: {
          title: '发布招聘计划',
        },
      },
    ],
  },
  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/plans/details',
        component: () => import('@/views/recruit/plans/details.vue'),
        meta: {
          title: '招聘计划详情',
        },
      },
    ],
  },
  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/plans/configuration',
        component: () => import('@/views/recruit/plans/configuration.vue'),
        meta: {
          title: '面试配置',
        },
      },
    ],
  },
  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/plans/recruitTemplate',
        component: () => import('@/views/recruit/plans/recruitTemplate.vue'),
        meta: {
          title: '招聘模板',
        },
      },
    ],
  },

  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/formwork/form',
        component: () => import('@/views/recruit/formwork/form.vue'),
        meta: {
          title: '招聘模板',
        },
      },
    ],
  },

  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/talentPool/contrast',
        component: () => import('@/views/recruit/talentPool/contrast.vue'),
        meta: {
          title: '人才对比',
        },
      },
    ],
  },
  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/talentPool/record',
        component: () => import('@/views/recruit/talentPool/record.vue'),
        meta: {
          title: '面试记录',
        },
      },
      {
        path: '/recruit/talentPool/records',
        component: () => import('@/views/recruit/talentPool/records.vue'),
        meta: {
          title: '面试记录',
        },
      },
    ],
  },
]
